/****************************************************************************/
/* NAME:           tools.h                                                  */
/* PURPOSE:        Leds pwm management                                      */
/* CREATED_BY:     Vyx                                                      */
/* CREATION_DATE:  30/05/2013                                               */
/************************************** (C) Copyright 2013 AquaLink *********/

#include "main.h"

/**
  * @brief  Curve interpolation
  * @param  none
  * @retval None
  */
uint32_t TOOL_Interpolation(uint32_t *TableRefInput,
                            uint32_t *TableRefOutput,
                            uint8_t   TableSize,
                            uint32_t  ValueToInterpol);

/**
  * @brief  To get a random number between two threshold.
  * @param  min : low threshold; max : top threshold
  * @retval Random number
  */
uint32_t TOOL_rand_min_max(uint32_t min, uint32_t max);
